// All links-related publications

import { Meteor } from 'meteor/meteor';
import { Roles } from '../roles.js';

Meteor.publish('roles.limit', function (page, pagesize) {
	
  return Roles.find({}, {skip: page*pagesize, limit: pagesize, sort: {createdAt: -1}});
});


Meteor.publish('role.data', function (id) {

  return Roles.find({_id: id});

});
